FROM java:8
LABEL maintainer = "YooLin1c"
LABEL version = "1.0"
LABEL discription = "Spring Boot Admin"
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /home/admin-server
WORKDIR /home/admin-server
EXPOSE 7000
ADD ./target/admin-server-0.0.1-SNAPSHOT.jar ./
CMD java -jar -Djava.security.egd=file:/dev/./urandom admin-server-0.0.1-SNAPSHOT.jar